package com.vehicle.service;

import com.vehicle.bean.DataGridView;
import com.vehicle.bean.PageVo;
import com.vehicle.bean.ResultDto;
import com.vehicle.pojo.Btype;
import com.vehicle.pojo.Car;
import com.vehicle.pojo.Repair;
import com.vehicle.pojo.RepairRecord;

import java.util.List;

public interface RepairRecordService {

    //寻找所有维修单子
    DataGridView findAllRepairRecord(Integer carid, PageVo pageVo);

    //寻找所有修理厂
    List<Btype> findAllRepairBtype();

    //添加修理单子
    ResultDto addRepairRecord(RepairRecord repairRecord);

    //寻找所有空闲状态的车辆信息
    List<Car> findAllCar();

    //寻找所有修理级别
    List<Repair> findAllRepair();

    //批量删除
    ResultDto delManyRepairRecord(String idArray,String carid);

    //单个删除
    ResultDto delRepairRecord(Integer repairid,Integer carid);

    //根据Id查询记录
    RepairRecord findRecordById(Integer repairid);

    //根据Id修改记录信息
    ResultDto updateRecord(RepairRecord repairRecord);

    //取车
    ResultDto bringCar(RepairRecord repairRecord);
}
